﻿@model Models.Tag

@{
    ViewBag.Title = "AddTag";
}
<div style="float: left; height: 70px"><a href="/admin/index" ><img src="/Content/images/back.png" /></a></div>
<div style="float: left; margin-left: 15px; text-align: center; width: 100px"><a href="/admin/AddTag" ><img src="/content/images/tags_add.png" width="48" height="48" alt="Add tag" /><br />Add tag</a></div>
<div style="margin-left: 170px; text-align: center; width: 100px"><a href="/admin/Tags" ><img src="/content/images/tags_all.png" width="48" height="48" alt="All tags" /><br />All tags</a></div>

<h2>Add Tag</h2>


@if (ViewBag.Message != null)
{
@ViewBag.Message    
}
else
{
    using (Html.BeginForm())
    {
        @Html.ValidationSummary()
        <table id="table_admin">
            <tr>
                <td>
                    Name
                </td>
        
                <td>
                    @Html.TextBoxFor(x => x.Name)
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" name="subAddTag" value="Add"/>
                </td>
                
            </tr>
    
        </table>
    }
}